import request from "@/utils/request"
export const showAllApi = (page, pageSize) => {
  return request.get(`/supplier?page=${page}&pageSize=${pageSize}`)
}

export const addApi = (data) => {
  return request.post(`/supplier`, data)
}
export const showBackApi = (id) => {
  return request.get(`/supplier/${id}`)
}
export const updateApi = (data) => {
  return request.put(`/supplier`, data)
}
export const delApi = (ids) => {
  return request.delete(`/supplier?ids=${ids}`)
}